const _ = require("lodash");
// lodash   flowRight
const reverse = (array) => array.reverse();
const first = (array) => array[0];
const toUpper = (value) => value.toUpperCase();
const f = _.flowRight(toUpper, first, reverse);
console.log(f(["one", "two", "three"]));
